.class Lcom/waiqin365/h5/contacts/b;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;


# direct methods
.method constructor <init>(Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/h5/contacts/b;->a:Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/h5/contacts/b;->a:Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;

    invoke-static {v0}, Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;->a(Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/h5/contacts/b;->a:Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;

    invoke-static {v1}, Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;->b(Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v1

    const-class v2, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    :goto_0
    new-instance v1, Lcom/waiqin365/lightwork/directory/b/v;

    invoke-direct {v1}, Lcom/waiqin365/lightwork/directory/b/v;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/h5/contacts/b;->a:Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;

    invoke-static {v2}, Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;->c(Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/waiqin365/h5/contacts/b;->a:Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;

    invoke-static {v2}, Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;->c(Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, ","

    invoke-virtual {v2, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightwork/directory/b/v;->l:Ljava/util/List;

    :cond_0
    iget-object v2, p0, Lcom/waiqin365/h5/contacts/b;->a:Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;

    iget-object v2, v2, Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;->a:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightwork/directory/b/v;->d:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/h5/contacts/b;->a:Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;

    invoke-static {v2}, Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;->d(Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightwork/directory/b/v;->e:Ljava/lang/String;

    const-string/jumbo v2, "1"

    iget-object v3, p0, Lcom/waiqin365/h5/contacts/b;->a:Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;

    invoke-static {v3}, Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;->e(Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    const/4 v2, 0x1

    iput-boolean v2, v1, Lcom/waiqin365/lightwork/directory/b/v;->j:Z

    :goto_1
    const-string/jumbo v2, "param"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/h5/contacts/b;->a:Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;

    invoke-static {v1}, Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;->b(Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v1

    invoke-virtual {v1, v0}, Lorg/apache/cordova/WqCordovaActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/h5/contacts/b;->a:Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;

    invoke-static {v0}, Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;->b(Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v0

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lorg/apache/cordova/WqCordovaActivity;->overridePendingTransition(II)V

    return-void

    :cond_1
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/h5/contacts/b;->a:Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;

    invoke-static {v1}, Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;->b(Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v1

    const-class v2, Lcom/waiqin365/h5/contacts/acty/DirectorySelectMultiModeByIdsActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "allCanSelectIds"

    iget-object v2, p0, Lcom/waiqin365/h5/contacts/b;->a:Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;

    invoke-static {v2}, Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;->a(Lcom/waiqin365/h5/contacts/WqEmployeeSelectMore;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_0

    :cond_2
    const/4 v2, 0x0

    iput-boolean v2, v1, Lcom/waiqin365/lightwork/directory/b/v;->j:Z

    goto :goto_1
.end method
